import { RouteRecordRaw } from 'vue-router';
const routes: RouteRecordRaw[] = [
    {
        path: '/shop',
        component: () => import('~/layout/index.vue'),
        children: [
            {
                path: '',
                name: 'shop',
                component: () => import('~/views/shop/home/index.vue'),
                meta:{
                    keepAlive:true,
                    scrollContainerSelector:'.up-pull-load'
                }
            },
        ]
    },

    {
        path: '/shop/goods/:id(\\d+)',
        name: 'goods',
        component: () => import('~/views/shop/goods/index.vue'),
    },
    {
        path: '/shop/categorys/:id(\\d+)?',
        name: 'shop-category',
        component: () => import('~/views/shop/category/index.vue'),
    },
    {
        path: '/shop/categorys/goods/:id(\\d+)?',
        name: 'shop-category-goods',
        component: () => import('~/views/shop/category/goods/index.vue'),
    }
];
export default routes;